<!--@if($product->isConfigurable())-->
<div class="product-variants clearfix" id="product_variants_{$product->product_srl}">
	<!-- Display just first two attributes -->
		{@ $max_attributes = 2; $i = 1; }
		<!--@foreach($product->configurable_attributes as $attribute_srl => $attribute_title)-->
			<!--@if($i > $max_attributes) break; -->
			<!--@endif-->
			<p class="f-left">
                <select id="product_{$product->product_srl}_attribute_{$attribute_srl}_values" class="level_{$i}">
                    <option value="">{$attribute_title}</option>
                    {@ $already_added = array() }
                    <!--@foreach($product->associated_products as $asoc_product)-->
                        {@ $current_value = $asoc_product->attributes[$attribute_srl] }
                        <!--@if(!$already_added[$current_value])-->
                        <option value="{$current_value}">{$current_value}</option>
                        <!--@endif-->
                        {@ $already_added[$current_value] = true; }
                    <!--@end-->
                </select>
			</p>
		{@ $i++;}
		<!--@end-->
		<input type="hidden" id="product_srl" name="product_srl" value="" class="product_srl" />
</div>
<!--@end-->